package com.example.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: bjc
 * Date: 2025-06-27
 * Time: 16:45
 */
@RestController //标识当前类是一个请求处理
public class BookController {
    //返回值表示给前端响应的数值
    @RequestMapping("/hello")//标识请求路径
    public String hello(String name){//方法名随意
        System.out.println("name: "+name);
        return "Hello "+name +"~";
    }
}
